<template>
	<layout>
  <!--心情随笔-->
  <div class="warp">

    <div class="main_l">
      <div class="note">
         <!-- 返回首页 -->
        <backIndex title="心情随笔"/>
        <ul class="note_ul">
          <li v-for="(item,index) in dataTable" :key="index" @tap.stop="$tools.jump('/pages/detail/detail?table=note&title=心情随笔&&id='+item._id)">
            <div class="note_txt">
              <p class="note_txt_time"><span class="time">{{(item.create_time)}}</span></p>
              <p class="note_txt_title"><router-link :to="'/pages/detail/detail?table=note&title=心情随笔&&id='+item._id">{{item.title}}</router-link></p>
            </div>
          </li>
        </ul>
      </div>
    </div>
    <!-- 主要右边 -->
    <mainR />
  </div>
	</layout>
</template>

<script>
import layout from '@/layout/index.vue'	
import backIndex from '@/components/backIndex'
import mainR from '@/components/mainR'
export default {
  components:{layout,mainR , backIndex},
  data() {
    return {
      dataTable:[]
    };
  },
  mounted() {
    this.getList()
  },
  computed: {},
  methods: {
     // 列表
    getList(){
      const that = this
			const data={
        table:'note'
      }
			this.$Ajax('getLists',data,res=>{
				console.log(res.data)
				 that.dataTable = res.data
			})
    },
  },
};
</script>
<style scoped>
</style>
